import React from 'react'
import ReactDOM from 'react-dom'
import './styles/index.css'
// import App from './App';
// import App from './02-useRef';
// import App from './03-todos'
// import App from './04-router'
// import App from './05-App'
// import App from './01-组件复用-初始代码/01'
// import App from './01-组件复用-初始代码/02-图标跟随鼠标'
// import App from './02-组件复用-render-props/01'
// import App from './02-组件复用-render-props/02-图标跟随鼠标'
// import App from './03-组件复用-HOC/01'
// import App from './03-组件复用-HOC/02-图标跟随鼠标'
// import App from './04-组件复用-hooks/01'
// import App from './04-组件复用-hooks/02-图标跟随鼠标'
// import App from './05-优化/01-初始代码/ComA'
// import App from './05-优化/02-类组件/01-初始代码'
import App from './05-优化/02-类组件/02-纯组件-浅层比较'

// import store from './store'
// import { Provider } from 'react-redux'
import reportWebVitals from './reportWebVitals'

// import { createRoot } from 'react-dom/client'
// const container = document.getElementById('root') as Element;
// const root = createRoot(container);
// root.render(<App/>);

/* <Provider store={store}> */
// </Provider>,
ReactDOM.render(
    <App />,
    document.getElementById('root')
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
